<?php
/**
 * Created by PhpStorm.
 * User: zhangyi
 * Date: 17/3/11
 * Time: 下午9:44
 */
namespace backend\controllers;

use app\models\Member;
use Yii;

class MemberController extends BaseInterfaceController
{
    public function actionProfile()
    {
        $uid = $this->originData['uid'];
        $model = Member::findOne($uid);
        if($model) {
            $this->content = array(
                'mobile'=>$model->mobile,
                'nickname'=>$model->username,
            );
        } else {
            $this->status=-1;
            $this->message='参数无效';
        }
        $this->outputJson();

    }

}